package com.kinghood.authoritycenter.service;


import com.kinghood.authoritycenter.common.model.dao.auth.OpenAccountDO;
import com.kinghood.authoritycenter.common.model.dto.auth.KingHoodPrincipal;
import com.kinghood.authoritycenter.common.model.dto.auth.UserDTO;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2023-12-06 14:53
 **/
public interface LoginService {

    /**
     * 登录
     *
     * @param in 用户信息
     * @return token信息
     * @author zfj
     * @date 2023/12/6
     */
    KingHoodPrincipal<UserDTO> login(UserDTO in);

    /**
     * 系统登录
     *
     * @param openAccountDO 系统用户
     * @return token信息
     * @author zfj
     * @date 2023/12/14
     */
    KingHoodPrincipal<OpenAccountDO> openToken(OpenAccountDO openAccountDO);
}
